<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http:dream/cust_tag.tld" prefix="page"%>
<c:forEach var="vo" varStatus="vs" items="${pageVO.details}">
	<tr id="item${vs.count}">
		<td class="text-left ellipsis">
			<c:out value="${vo.orderProduct.customer.firstOrg.name}"/>
		</td>
		<td class="text-center ellipsis" >
			<c:out value="${vo.orderProduct.customer.secondOrg.name}"/>
		</td>
		<td class="text-center ellipsis" >
			<c:out value="${vo.orderProduct.customer.name}"/>
		</td>		
		<td class="text-center ellipsis" >
			<c:out value="${vo.code}"/>
		</td>
		<td class="text-center ellipsis" >
			<c:out value="${vo.typeObj.name}"/>
		</td>
		<td class="text-center" >
			<fmt:formatDate value="${vo.orderDate}" pattern="yyyy-MM-dd"/>
		</td>
		<td class="text-center" >
			<spring:message code="${vo.status}"/>
		</td>		
		<td class="text-center" >
			<a  class="btn btn-success btn-small" href='javascript:void(0)' onclick="dispatchOrder('${vo.id}','${vo.orderProduct.customer.orgId}')" >
				派单
			</a>
		</td>
	</tr>
</c:forEach>
<tr>
<td colspan="8" class="text-center" >
	<page:webpaging formId="orderPagingForm" function="common.ajaxPagingQuery('${root}/order/list')" totalCount="${pageVO.count}"></page:webpaging>
</td>
</tr>
 		


